import { IForm } from '@/base-ui/form'
export const modelConfig: IForm = {
  formItems: [
    {
      field: 'name',
      type: 'input',
      lable: '用户名',
      placeholder: '请输入用户名',
      rules: [
        {
          required: true,
          message: '用户名不能为空',
          trigger: 'blur'
        }
      ]
    },
    {
      field: 'realname',
      type: 'input',
      lable: '真实姓名',
      placeholder: '请输入真实姓名',
      rules: [
        {
          required: true,
          message: '姓名不能为空',
          trigger: 'blur'
        }
      ]
    },
    {
      field: 'password',
      type: 'password',
      lable: '用户密码',
      placeholder: '请输入密码',
      isHidden: true,
      rules: [
        {
          required: true,
          message: '密码不能为空',
          trigger: 'blur'
        }
      ]
    },
    {
      field: 'cellphone',
      type: 'input',
      lable: '电话号码',
      placeholder: '请输入电话号码'
    },

    {
      field: 'departmentId',
      type: 'select',
      lable: '选择部门',
      placeholder: '请选择部门',
      options: [],
      rules: [
        {
          required: true,
          message: '部门不能为空',
          trigger: 'blur'
        }
      ]
    },
    {
      field: 'roleId',
      type: 'select',
      lable: '选择角色',
      placeholder: '请选择角色',
      options: [],
      rules: [
        {
          required: true,
          message: '角色不能为空',
          trigger: 'blur'
        }
      ]
    }
  ],
  labelWidth: '100px',
  itemStyle: {
    padding: '10px 0px'
  },
  colLayout: {
    span: 24
  },
  title: '用户'
}
